<?php
namespace Admin\Controller;
use Think\Controller;
class AdminController extends Controller {
    public function index(){
       $this->display();
    }
	public function user_login(){
		$username = $_POST['username'];
		$password = $_POST['password'];
		$admin = M("Admin"); // 实例化User对象
		$map['username&password'] =array($username,$password,'_multi'=>true);// 把查询条件传入查询方法
		$admin_user = $admin->where($map)->select();
		if($admin_user){			
			echo('成功登录');
		}else{
			echo('不能登录');
		}
	}
}